package com.dhu.dao;

import com.dhu.pojo.UserBarFollow;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserBarFollowMapper {
    // 关注贴吧
    void addFollow (int userId, int barId);
    // 获取用户关注的贴吧id
    int[] selectFollowBarId(int id);
    // 是否关注贴吧
    UserBarFollow ifFollowBar (int userId, int barId);
    // 关注吧
    int follow (int userId, int barId);
    // 取消关注
    int disFollow (int userId, int barId);
}
